From 169e8ec401c9485886a733de7f0191a5aae08a12 Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Tue, 17 Mar 2020 16:16:34 +0100 Subject: [PATCH] x86/HVM: reduce io.h include dependencies Drop #include-s not needed by the header itself as well as one include of the header which isn't needed. Put the one needed into the file actually requiring it. Signed-off-by: Jan Beulich Reviewed-by: Kevin Tian Acked-by: Andrew Cooper --- xen/include/asm-x86/hvm/io.h | 4 ---- xen/include/asm-x86/hvm/vcpu.h | 1 + xen/include/asm-x86/hvm/vmx/vmcs.h | 2 -- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/xen/include/asm-x86/hvm/io.h b/xen/include/asm-x86/hvm/io.h index f5a8813b33..558426b772 100644 --- a/xen/include/asm-x86/hvm/io.h +++ b/xen/include/asm-x86/hvm/io.h @@ -19,12 +19,8 @@ #ifndef __ASM_X86_HVM_IO_H__ #define __ASM_X86_HVM_IO_H__ -#include #include -#include -#include #include -#include #define NR_IO_HANDLERS 32 diff --git a/xen/include/asm-x86/hvm/vcpu.h b/xen/include/asm-x86/hvm/vcpu.h index 747bc462d3..eaeba71cf1 100644 --- a/xen/include/asm-x86/hvm/vcpu.h +++ b/xen/include/asm-x86/hvm/vcpu.h @@ -26,6 +26,7 @@ #include #include #include +#include enum hvm_io_completion { HVMIO_no_completion, diff --git a/xen/include/asm-x86/hvm/vmx/vmcs.h b/xen/include/asm-x86/hvm/vmx/vmcs.h index be4661a929..ccbe1a01cf 100644 --- a/xen/include/asm-x86/hvm/vmx/vmcs.h +++ b/xen/include/asm-x86/hvm/vmx/vmcs.h @@ -18,8 +18,6 @@ #ifndef __ASM_X86_HVM_VMX_VMCS_H__ #define __ASM_X86_HVM_VMX_VMCS_H__ -#include - extern void vmcs_dump_vcpu(struct vcpu *v); extern void setup_vmcs_dump(void); extern int vmx_cpu_up_prepare(unsigned int cpu); -- 2.30.2